﻿@model List<StockChangeType>
@{
    Layout = null;
}
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add" href="/admin/StockChangeType/edit" mask="true" target="dialog" height="200"  rel="InterfaceType_Edit"><span>添加</span></a></li>
            <li><a class="delete" href="/admin/StockChangeType/Delete?id={sid_user}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
            <li><a class="edit" href="/admin/StockChangeType/edit?id={sid_user}" mask="true" target="dialog" height="200" rel="InterfaceType_Edit"><span>修改</span></a></li>
            <li class="line">line</li>
        </ul>
    </div>
    <table class="table" width="100%" layouth="138">
        <thead>
            <tr>
                <th width="120" align="center">名称</th>
                <th width="120" align="center">出/入</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr target="sid_user" rel="@item.ID">
                    <td align="center">@item.Name</td>
                    <td align="center">
                        @{
                            if(item.InOut==1)
                            {
                                <span style=" color:green ">入库</span>
                            }
                            else
                            {
                                <span style="color: red">出库</span>
  
                            }
                            
                        }
                  
                    </td>
                </tr>
            }
        </tbody>
    </table>
</div>
